package org.club.Service;

import org.club.common.model.dto.Announcemen;
import org.club.common.model.dto.AnnouncementsDto;
import org.club.common.model.entity.Announcement;
import org.club.common.model.vo.AnnouncementUserVO;
import org.club.common.model.vo.AnnouncementVO;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface AnnouncementService {
    //获取公告
    List<AnnouncementVO> getAllAnnouncements(AnnouncementsDto announcementsDto);
    /**
     * 更新公告
     */
    void updateAnnouncement(Announcement announcement);
//    删除公告
    void deleteAnnouncement(Long id);
//    搜索用户
    List<AnnouncementUserVO> searchUsers(String keyword);
//    创建公告
    Long createAnnouncement(Announcemen announcemen);
}
